This function returns the time that your game has been running on the chosen platform in microseconds (there are 1 million microseconds per second).
get_timer();
Real
time = get_timer();
This would store the timer value in the variable "time".